import request from '../utils/request'

export const profile = username => request({
    method: 'get',
    url: `/api/profiles/${username}`
})

export const follow = username => request({
    method: 'post',
    url: `/api/profiles/${username}/follow`
})

export const unfollow = username => request({
    method: 'delete',
    url: `/api/profiles/${username}/follow`
})